<?php session_start();
require_once('../../includefiles.php');
require_once '../../model/state.php';

$stateObj = new Model_State();
	

$postalcode = $_GET['postcode']; 
$getpostalcodedetail = $stateObj->getPostalcodeExits($postalcode);
// this function check username Exit ot not
//$result = $userObj->getUserEmail(trim($email));

if(count($getpostalcodedetail) > 0)
{	
	if(strtolower(trim($getpostalcodedetail['postcode'])) == strtolower(trim($postalcode)))
	{
		echo 'true';
	}
}
else
{
	echo "false";	
}

?>


